//
//  GCDSocketManager.h
//  DriverBus
//
//  Created by MacMini20170218 on 2017/3/27.
//  Copyright © 2017年 JiYang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GCDAsyncSocket.h"
#import "AppDelegate.h"
#import <AVFoundation/AVFoundation.h>
#import "MyNotification.h"

@interface GCDSocketManager : NSObject <GCDAsyncSocketDelegate,AVSpeechSynthesizerDelegate>

@property(nonatomic,strong) GCDAsyncSocket *socket;

//心跳定时器
@property(nonatomic,strong) NSTimer *timerHeart;

//单例
+ (instancetype)sharedSocketManager;

//连接
- (void)connectToSocket;

//断开
- (void)cutOffSocket;

//发送数据
- (void)sendDataToServer:(NSString*)dataString;

@end
